<%@ page language="java" import="java.util.*" pageEncoding="Utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'checkReader.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<style type="text/css">
body{
	font-size:13px;
}
div{
	width:980px;
	height:800px;
	
}

table{

border-top:1px solid gray;
border-left:1px solid gray;
}
tr{

}
td{
margin:0px;
width:100px;
text-align:center;
border-right:1px solid gray;
border-bottom:1px solid gray;

}

#btn{
width:80px;
}

</style>
  </head>
  
  <body>
  <div>
  <form action="jsp/user/readerCheck_list">
读者编号：<input type="text" name="rid"/> 
 读者姓名：<input type="text" name="rname"/> 
 读者电话：<input type="text" name="rtel"/> 
 <input type="submit" value="查询" id="btn"/>
 </form>
<table>
<thead>
<tr>
<td>读者编号</td>
<td>读者姓名</td>
<td>读者电话</td>
<td>剩余押金</td>
<td>借书</td>
<td>还书</td>
<td>编辑读者</td>
</tr>
</thead>
<tbody>
<c:forEach items="${requestScope.readerList }" var="reader">
<tr>
<td>${reader.r_id}</td>
<td>${reader.r_name}</td>
<td>${reader.r_tel}</td>
<td>${reader.r_money}</td>
<td><a href="jsp/bookBorrow.jsp">借书</a></td>
<td><a href="jsp/book/bookreturn_list">还书</a></td>
<td><a href="jsp/reader/readercle_list?rid=${reader.r_id}">编辑</a></td>
<tr>

</c:forEach>
</tbody>
</table>
</div>
  </body>
</html>
